package creative.fire.interview.voxeo;

import java.util.Iterator;
import java.util.LinkedHashSet;

/**
 * @author feuyeux@gmail.com 2011-8-9
 */
public class LinkedHashSetTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		LinkedHashSet<String> set = new LinkedHashSet<String>();

		set.add("x");
		set.add("z");
		set.add("x");
		set.add("y");
		set.add("x");
		set.add("z");

		for (Iterator<String> iterator = set.iterator(); iterator.hasNext();) {
			String s = iterator.next();
			System.out.println(s);
		}
	}

}
